<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class Users extends Model
{
    public function getUsers($name='')
    {
        if(empty($name)){
            return [];
        }
    	return  $this->where('name',$name)->first();
    }
}
